package cn.wp.ewallet.wmps.scheduler;

import cn.wp.common.core.plugin.scheduler.SchedulerRunnable;
import cn.wp.common.core.plugin.scheduler.SchedulerTask;
import cn.wp.common.core.util.ApplicationContextUtil;
import cn.wp.ewallet.wmps.service.ProdOrderRelChangeStatusService;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class ProdOrderRelOrderStatusChangeRunnable extends SchedulerRunnable {

    public ProdOrderRelOrderStatusChangeRunnable(SchedulerTask schedulerTask) {
        super(schedulerTask);
    }

    @Override
    public void runStart() {
        ProdOrderRelChangeStatusService prodOrderRelChangeStatusService = ApplicationContextUtil.getBean(ProdOrderRelChangeStatusService.class);
        prodOrderRelChangeStatusService.changeStatus();
    }

    @Override
    public void runFinish(SchedulerTask schedulerTask) {
        log.info("修改理财订单状态定时任务完成");
    }
}
